#pragma once

#include "../D5XCommon/D5XProtocol.h"
#include "../FilterSDK/NodeMsg.h"

static class CD5XPLCMsgHelper
{
public:
	static int PLCFrame2NodeMsg(CNodeMsg* pCNodeMsg, unsigned char* pData, int len) noexcept;
	static int GetPLCFrameLen();
	static int NodeMsg2PLCFrame(CNodeMsg* _pNodeMsg, unsigned char* pData, int len) noexcept;
	static int ReadEncoderFromFile(std::string path, std::string& encoderPos) noexcept;
	static int SetPLCFrameMsgLen(int len);
	static int SetPLCFrameDataLen(int len);
};

